<h1 style="color:#FF3300";><?php echo $hotel['name']." - ".$room['name']." - ".$hotel['provide'] ?></h1>
<input type="button" onclick="location.assign('<?php echo base_url(); ?>admin/hotelroomprice/edit?hotelid=<?php echo $_GET['hotelid']?>&roomid=<?php echo $_GET['roomid']?>');" value="Insert" style="float:right;margin-right:10px;margin-bottom:5px;"/>
<table>
  <tr>
    <th>STT</th>
    <th>Old Price</th>
    <th>Price</th>
    <th>Extra Bed</th>
    <th>P.o Child</th>
    <th>From -> To Date</th>
    <th>Status</th>
    <th>Edit / Del</th>
  </tr>
  <?php if(count($data)>0){
			foreach($data as $k=>$list){?>
  <tr>
    <th><?php echo $k+1 ?></th>
    <th><?php echo "$".$list['oldprice'] ?></th>
    <th><?php echo "$".$list['price'] ?></th>
    <th><?php echo "$".$list['extra'] ?></th>
    <th><?php echo "$".$list['priceforchild'] ?></th>
    <th><?php echo date('d.m.Y',strtotime($list['fromdate']))." ==> ".date('d.m.Y',strtotime($list['todate'])) ?></th>
    <th><select name="changestatus" onChange="location.assign('<?php echo base_url(); ?>admin/hotelroomprice/changestatus?hotelid=<?php echo $_GET["hotelid"] ?>&roomid=<?php echo $_GET["roomid"] ?>&id=<?php echo $list["id"] ?>&status='+this.options[this.selectedIndex].value);">
        <option value="0" <?php if($list['status']==0) echo "selected";?>>Highlights</option>
        <option value="1" <?php if($list['status']==1) echo "selected";?>>Normal</option>
        <option value="2" <?php if($list['status']==2) echo "selected";?>>Hide</option>
      </select></th>
    <th><a href="<?php echo base_url(); ?>admin/hotelroomprice/edit?hotelid=<?php echo $_GET['hotelid'] ?>&roomid=<?php echo $_GET['roomid'] ?>&id=<?php echo $list['id'] ?>"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_edit.png"/></a> / <a href="javascript:void(0);" onClick="if(confirm('Do you want to Del this Information ?')) location.assign('<?php echo base_url(); ?>admin/hotelroomprice/delete?hotelid=<?php echo $_GET['hotelid'] ?>&roomid=<?php echo $_GET['roomid'] ?>&id=<?php echo $list["id"]; ?>');"><img src="<?php echo base_url(); ?>public/admin/img/icons/user_delete.png"/></a></th>
  </tr>
  <?php }
		}  ?>
</table>
